package com.coffee.order.service.inquire.dao;

import com.coffee.order.api.inquire.query.InquireOrderContractQuery;
import com.coffee.order.service.inquire.bean.InquireOrderContract;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireOrderContractDao {
	public InquireOrderContract findById(Integer id);
	
	public InquireOrderContract findByIdForUpdate(Integer id);
	
	public List<InquireOrderContract> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") InquireOrderContractQuery param);

	public List<InquireOrderContract> page(@Param("param") InquireOrderContractQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<InquireOrderContract> list(@Param("param") InquireOrderContractQuery param);

	public InquireOrderContract findFirst(@Param("param") InquireOrderContractQuery param);

	public Integer insert(InquireOrderContract param);

	Integer insertBatch(List<InquireOrderContract> list);

	public void updateById(@Param("param") InquireOrderContract param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}